﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.DALFactory;

namespace KPIS.GERP.GHRMS.BLL
{
    public class SpecialExpertBLL
    {
        private static readonly ISpecialExpertDAL dal = DataAccess.CreateSpecialExpert();

        public DataSet LoadSpecialExpert(Nullable<int> Sequence, Nullable<int> EmpSequence)
        {
            return dal.LoadSpecialExpert(Sequence, EmpSequence);
        }
        public void Insert(int EmpSequence, int ExpertType, string ExpertDescr, string Remarks, int CreatedBy)
        {
            try
            {
                dal.Insert(EmpSequence, ExpertType, ExpertDescr, Remarks, CreatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(int Sequence, int ExpertType, string ExpertDescr, string Remarks, int UpdatedBy)
        {
            try
            {
                dal.Update(Sequence, ExpertType, ExpertDescr, Remarks, UpdatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
    }
}
